import http from '@/utils/http'

// 获取系统配置
export const fetchSysConfig: ApiPromise<any, { title: string }> = (data) =>
  http.get('/api/system/config', { params: data })

// 生成订单
export const payGift = <D>(data: D) => http.post('/api/order/placeOrder', data)

export const fetchArticleList: ApiPromise<any, any> = (p) => http.get('/shopapi/article/lists', p)
